home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / DefineButton2_43 / BUTTONCONDACTION on(rollOver).as
Encoding:
Text File  |  2013-04-24  |  671 b   |  18 lines

  1. on(rollOver){
  2.    _root.kongregateStats.submit("doeocaught_hard",1);
  3.    _root.doeos = _root.doeos + 1;
  4.    _parent._parent.done = _parent._parent.done + 1;
  5.    if(_parent._parent.done == _parent._parent.doeo)
  6.    {
  7.       _root.score += 2000;
  8.       _parent._parent.attachMovie("thousand","thousand" + _parent._parent.getNextHighestDepth(),_parent._parent.getNextHighestDepth(),{_x:_parent._x,_y:_parent._y - 20});
  9.    }
  10.    else
  11.    {
  12.       _root.score += 20;
  13.       _parent._parent.attachMovie("fifty","fifty" + _parent._parent.getNextHighestDepth(),_parent._parent.getNextHighestDepth(),{_x:_parent._x,_y:_parent._y - 20});
  14.    }
  15.    _parent.stop();
  16.    play();
  17. }
  18.